function getMoodIconList() {
	var uri = getApp().globalData.url + 'modules/icon/appList?type=6'

	uni.request({
		url: uri,
		method: 'GET',
		header: {
			'content-type': 'application/json'
		},
		data: {

		},
		success: (res) => {
			var resData = res.data;
			console.log("========================")
			console.log(resData)
			if (resData.code == "200") {
				return resData

			} else {

			}
		},
		fail: (err) => {
			uni.showToast({
				icon: 'none',
				title: '请求接口失败'
			})

		}
	});
}
function getMoodIcon(iconList,checkedIconIndex){
	
	var icon = ""
	console.log("===============--------")
	console.log(iconList)
	console.log(checkedIconIndex)
	for (var i = 0; i < iconList.length; i++) {
		if (checkedIconIndex == iconList[i].id) {
			icon = iconList[i].url
			console.log(checkedIconIndex)
			break
		}

	}
	return icon
	
}
export default {
	getMoodIconList,
	getMoodIcon


}